﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using sixgod.Enum;
using SqlSugar;

namespace sixgod.Model.WorkFlow
{
    /// <summary>
    /// 节点关联
    /// </summary>
    [SugarTable("NodeLink")]
    public class NodeLink:ModelBase
    {
        /// <summary>
        /// 流程ID
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string WorkFlowId { get; set; }

        /// <summary>
        /// 上一个节点
        /// </summary>
        public string LastNode { get; set; }
        
        /// <summary>
        /// 操作
        /// </summary>
        public EnumNodeOperation? Operation {get;set; }

        /// <summary>
        /// 下一个节点
        /// </summary>
        public string NextNode { get; set; }

        /// <summary>
        /// 模型数据验证
        /// </summary>
        /// <returns></returns>
        public override (bool, string) Verify()
        {
            return (false, null);
        }
    }
}
